package com.mlyol.single;

public class Method1 {
    public static void main(String[] args) {
        Vehicle vehicle = new Vehicle();
        vehicle.run("摩托车");
        vehicle.run("汽车");
        vehicle.run("飞机");
    }

    static class Vehicle {
        void run(String vehicle) {
            System.out.println(vehicle + "正在公路上跑");
        }
    }

}
